package demo01;

import lombok.Data;

@Data
public class Student {
    private String name;
    private Integer age;

    public Student(String name) {
        this.name = name;
    }

    public Student(Integer age) {
        this.age = age;
    }

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Student() {
    }

    public void show() {
        System.out.println("我是学生！");
    }

    public void show2(int age) {
        System.out.println("我是学生！今年：" + age + "岁");
    }
}
